package com.github.cooker.monitor.core;

import lombok.AllArgsConstructor;

/**
 * 17/1/2022 3:24 下午
 * 描述：
 *
 * @author grant
 */
@AllArgsConstructor
public enum LevelTypeEnum implements LevelType {
    INFO(1), WARN(2), ERROR(3);
    private Integer code;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name();
    }
}
